﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EQual.Infrastructure.MVPFramework.Presenters
{
    /// <summary>
    /// This presenter 
    /// </summary>
    /// <typeparam name="Tview"></typeparam>
    /// <typeparam name="Ttype"></typeparam>
    public abstract class ListPresenterBase<Tview,Ttype> : IListPresenter <Tview,Ttype > 
    {
        #region IListPresenter<Tview> Members

        Tview _view;

        public virtual Tview View
        {
            get { return _view; }
            set { _view = value; }
        }

        public abstract void Dispaly(Ttype item);

        Ttype _activeItem;

        public virtual Ttype ActiveItem
        {
            get { return _activeItem; }
            set
            {
                _activeItem = value;
                Dispaly(value);
            }
        }


        #endregion
    }     
}

